﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CodeFirstRelationMapping.Models.Post>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%: Model.Title %></h2>
    <div style="margin-bottom:10px; color:#999">
        <span>
            <%: Model.CreatedBy %></span> 
            <span><%: String.Format("{0:dd MMM, yyy @ HH:MM}", Model.CreatedOn)%></span>
    </div>
    <div class="body">
        <%: Model.Body %>
    </div>
    <p>
        <%: Html.ActionLink("Edit", "Edit", new { Model.Id }) %>
        |
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>
</asp:Content>
